package com.it.park.client.service;

import java.util.List;
import java.util.Map;

import com.it.park.client.service.base.BaseService;
import com.it.park.model.Article;
import com.it.park.model.ArticleVo;

public interface ArticleService extends BaseService<Article>{
		List<Article> hotList();
	
	  Integer updateClickRate(Integer id);

	  List<Article> listRelationUser(Map<String,Object> map);
	  
	  Integer updateComment(Map<String,Object> map);
	  
	  List<Article> selectByCategoryType(Map<String,Object> map);
	  
	  Integer  selectByCategoryTypeTotal(Integer categoryType);
	  
	  List<Article> selectByType(Map<String,Object> map);
	  
	  Integer  selectByTypeTotal(Integer articleTypeId);
	  
	  boolean putToRecycle(Integer id);
	
	  boolean setToDraft(Integer id);
	  
	  boolean recoverFromRecycle(Integer id);
	  
	  List<Article> selectFromRecycle(Integer userId);
	  
	  List<Article> selectFromDraft(Integer userId);
	  
	  List<Article> selectOtherInterested(Integer id);
	  
	  void updateReview(Article article);
	  
	  List<ArticleVo> selectNewArticleComment();
}
